texts.js ➔ bothWorlds   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
1
2
var text = t('This text is in a javascript file.');
3
4
function bothWorlds()
5
{
6
	return t('This text is used serverside and on the client.');
7
}
8
9
var multiline = t(
10
	'It is possible to write long texts ' +
11
	'using text concatenation in the source ' +
12
	'code to keep it readable.'
13
);
14
15
var someVariable = '';
16
17
var text2 = t('Texts with variables in them are ignored.'+someVariable);